package classes;

public enum Gender
{
	male, female;
	
	public static Gender fromOrdinal( int gender )
	{
		Gender ret;
		
		if( gender == 0 )
		{
			ret = male;
		}
		else
		{
			ret = female;
		}
		
		return ret;
	}
	
	public String toString()
	{
		String ret;
		
		if( this == male )
		{
			ret = "masculino";
		}
		else
		{
			ret = "feminino";
		}
		
		return ret;
	}
}
